// 引入二次封装的 axios
import request from './request'

// 登录模块
export const getLogin = (model) => request.post('sys/login', model)
//左侧导航
export function menusList() {
    let data = request.get('/menus')
    return data
}
//获取员工管理
export const getUser = (model) => request.get('user-manage/list', { params: model })

// 数据可视化(柱状)
export const getCharts = () => request.get('/chart/trend')

//条形
export const getAmount = (model) => request.get('chart/time/amount', { params: model })

//圆饼
export const getPie = () => request.get('chart/pie')

//词云图
export const getWord = () => request.get('chart/wordcloud')

//地图
export const getMap = () => request.get('chart/bmap')

//右表格
export const getTable = () => request.get('chart/regions')

//左表格
export const getTab = () => request.get('chart/sheets')

